package org.sdv.managedbean.interceptor;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;

import org.sdv.managedbean.interceptor.annotation.CalculatorLogger;

@Interceptor
@CalculatorLogger
public class LifecycleCalculatorInterceptor {

	@PostConstruct
	public void postConstructLogger(InvocationContext context) throws Exception {
		System.out.println("\n1) LifecycleCalculatorInterceptor:PostConstruct:postConstructLogger");
	}
	
	@PreDestroy
	public void preDestroyLogger(InvocationContext context) throws Exception {
		System.out.println("\n3) LifecycleCalculatorInterceptor:PreDestroy:preDestroyLogger");
	}	
}
